package com.zmytest.annotation.scope.session;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * Created on 2018/12/29.
 *
 * @author zhangmingyu
 */
public class ScopeSessionImpl implements ScopeSession {

    private String name;

    @Override
    public String getName() {
        return name;
    }

    @Override
    public void setName(String name) {
        this.name = name;
    }

    @Override
    @PostConstruct
    public void init(){
        System.out.println("init method，after ScopeSession constructor");
    }

    @Override
    @PreDestroy
    public void preDestroy(){
        System.out.println("destroy method, ScopeSession destroy");
    }
}
